export = function (roomName:string): ICreepConfig {
    return {
        source: (creep: Creep) => {
            const room = Game.rooms[roomName];
            if (!room || creep.room.name != room.name) creep.moveTo(new RoomPosition(25, 25, roomName));
            else if (creep.room.name == room.name) {
                let controller:StructureController = creep.room.controller;
                if (creep.claimController(controller) == ERR_NOT_IN_RANGE) creep.moveTo(controller);
                return
            }
        },
        // 建造
        // 状态切换条件，稍后会给出具体实现
        switch: (creep: Creep) => false
    }
}